package net.masker.bbtweet;

import net.rim.device.api.ui.Graphics;
import net.rim.device.api.ui.component.RichTextField;

public class StatusField extends RichTextField
{
    // Sets initial text color to black.
    private int color = 0x00000000;
    
    public StatusField(long nonFocusable)
    {
		super(nonFocusable);
	}

	/**
	 * Sets the StatusField color.
	 * 
	 * @param newColor the integer value of the color to specify.
	 */
    public void setColor(int newColor)
    {
        color = newColor;
    }

    public void paint(Graphics graphics)
    {
        // Set color to specified color before painting.
    	graphics.setColor(color);
        super.paint(graphics);
    }

}